Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow saving generated images to dir #22

Merged
merged 6 commits into from
Jan 6, 2023
Merged

Conversation

MatthewFlamm
Copy link
Contributor

@MatthewFlamm MatthewFlamm commented Dec 26, 2022

Closes #17 and closes #6. Allow saving generated images to dir.

TODO:

  • Add option to append new images to image cache (needed to avoid users moving all new files to image cache)
  • Reverse option for failing with extra image? IMO, it should be defaulted to fail here and an option to not fail.
    Will leave for a different PR

@github-actions github-actions bot added the enhancement New feature or request label Dec 26, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 26, 2022

Codecov Report

Merging #22 (3a88ef2) into main (8ea9f78) will increase coverage by 2.71%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #22      +/-   ##
==========================================
+ Coverage   87.50%   90.21%   +2.71%     
==========================================
  Files           2        2              
  Lines          80       92      +12     
==========================================
+ Hits           70       83      +13     
+ Misses         10        9       -1     
Impacted Files Coverage Δ
pytest_pyvista/pytest_pyvista.py 90.10% <100.00%> (+2.76%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@MatthewFlamm
Copy link
Contributor Author

MatthewFlamm commented Dec 26, 2022

This PR is not really a breaking change for adding missing images since this functionality didn't work on the previous releases. See #17

Edit: Although it is a breaking change for pyvista

@MatthewFlamm MatthewFlamm marked this pull request as ready for review December 26, 2022 14:51
tests/test_pyvista.py Outdated Show resolved Hide resolved
@MatthewFlamm
Copy link
Contributor Author

MatthewFlamm commented Jan 6, 2023

Merging this after prior approval and merging with main with only minor changes afterwards.

@MatthewFlamm MatthewFlamm merged commit 4914fe4 into main Jan 6, 2023
@MatthewFlamm MatthewFlamm deleted the feat/generated_image_dir branch January 6, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not creating images for new tests Dump failing images to a directory
3 participants